<script  type="text/javascript">
    var g4_path = '..';
    var g4_bbs = 'bbs';
    function setConfig(configValue) {
        document.getElementById('config').value = configValue; 
        if(configValue == "delete") {
            document.getElementById('regcode').value = "delete";
            var confirmValue = confirm("정말 삭제하겠습니까?"); 
            if(confirmValue) {
                document.textbookfrm.submit();
            } else {
                alert('삭제 취소되었습니다.');
                return false;
            }
        }
        return true;
    }
</script>
<script type="text/javascript" src="/js/common.js"></script>
<form action="" method="POST" name="fregisterform" enctype="multipart/form-data">
<table width="100%" cellspacing="0" cellpadding="0" border="0" background="images/sub_bg.gif">
                  <tbody><tr>
                    <td><table width="823" cellspacing="0" cellpadding="0" border="0">
                        <tbody><tr>
                          <td background="images/sub_bg_title.gif"><img width="234" height="70" border="0" src="images/sub_title_business.gif"/></td>
                        </tr>
                    </tbody></table></td>
                  </tr>
                  <tr>
                    <td valign="top" height="40"><table width="823" cellspacing="0" cellpadding="0" border="0">
                        <tbody><tr>
                          <td><img width="1" height="1" src="images/1blank.gif"/></td>
                          <td width="81" bgcolor="#000000" align="right"><a href="teacher.php"><img width="69" height="24" border="0" src="images/sub_business_01.gif"/></a></td>
                          <td width="26" bgcolor="#000000"><img width="26" height="24" src="images/sub_menu_line.gif"/></td>
<td width="3" bgcolor="#000000"><a href="./bookManageDetail.php?add"><img width="51" height="24" border="0" src="images/sub_business_02.gif"/></a></td>
                          <td width="26" bgcolor="#000000"><img width="26" height="24" src="images/sub_menu_line.gif"/></td>
<td width="66" bgcolor="#000000"><a href="./courseManageDetail.php?add"><img width="54" height="24" border="0" src="images/sub_business_03.gif"/></a></td>
                        </tr>
                    </tbody></table></td>
                  </tr>
                  <tr>
                    <td><table width="823" cellspacing="0" cellpadding="0" border="0">
                        <tbody><tr>
                          <td width="30" valign="top"><img width="1" height="1" src="images/1blank.gif"/></td>
                          <td valign="top" height="40"><img width="168" height="19" src="images/sub_business_01_title.gif"/></td>
                        </tr>
                        <tr>
                          <td valign="top"><img width="1" height="1" src="images/1blank.gif"/></td>
                          <td valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                              <tbody><tr>
                                <td><table width="780" rules="rows" frame="hsides" cellspacing="0" cellpadding="3" bordercolor="#cccccc" border="2" style="border-collapse: collapse;" class="font">
                                    <tbody><tr>
                                      <td><div align="left">코드</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="8" size="8" value="ka-{_data.mb_no}" id="code" class="font" name="mb_code" disabled="disabled" /> * 자동발행
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td width="130"><div align="left">선생님 이름</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="8" size="8" value="{_data.mb_name}" id="name" class="font" name="mb_name" />
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">애칭(영문 이름)</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="20" size="20" value="{_data.mb_nick}" id="" class="font" name="mb_nick"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">성별</div></td>
                                      <td><div align="left">
                                          <input type="radio" name="mb_sex" value="M" checked="checked" />남<input type="radio" name="mb_sex" value="F" />여
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">ID</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="20" size="20" value="{_data.mb_id}" class="font" name="mb_id" {_disabled} />
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">Passward</div></td>
                                      <td><div align="left">
                                          <input type="password" maxlength="20" size="20" value="" class="font" name="mb_password[]"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">Passward 확인</div></td>
                                      <td><div align="left">
                                          <input type="password" maxlength="20" size="20" value="" class="font" name="mb_password[]"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">주민번호</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="13" size="13" value="{_data.mb_jumin}" id="" class="font" name="mb_jumin"/> -없이 입력해주세요
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">우편번호</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="3" size="3" value="{_data.mb_zip1}" id="" class="font" name="mb_zip1" readonly="readonly" />
                                        -
                                        <input type="text" maxlength="3" size="3" value="{_data.mb_zip2}" id="" class="font" name="mb_zip2" readonly="readonly" />
                                      <a onclick="win_zip('fregisterform', 'mb_zip1', 'mb_zip2', 'mb_addr1', 'mb_addr2');" href="javascript:;"><img width="91" height="20" border="0" align="absmiddle" src="../skin/member/basic/img/post_search_btn.gif"/></a>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">주소</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="1000" size="30" value="{_data.mb_addr1}" id="" class="font" name="mb_addr1" readonly="readonly" />
                                          <input type="text" maxlength="1000" size="60" value="{_data.mb_addr2}" id="" class="font" name="mb_addr2" />
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">생년월일</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="8" size="8" value="{_data.mb_birth}" id="" class="font" name="mb_birth"/>예) 19840213
                                        </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">이메일</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="60" size="60" value="{_data.mb_email}" id="" class="font" name="mb_email"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">연락처 1</div></td>
                                      <td><div align="left">
                                          <input type="text" maxlength="11" size="11" value="{_data.mb_tel}" id="" class="font" name="mb_tel"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">연락처 2</div></td>
                                      <td><div align="left">
                                      </div><input type="text" maxlength="11" size="11" value="{_data.mb_tel2}" id="" class="font" name="mb_tel2"/></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">핸드폰</div></td>
                                      <td><div align="left">
                                        <input type="text" maxlength="11" size="11" value="{_data.mb_hp}" id="" class="font" name="mb_hp"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">프로필 이미지(320X240)</div></td>
                                      <td><div align="left">
                                          <label/>
                                          <input type="file" class="font" name="mb_profile320"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">프로필 이미지(100X120)</div></td>
                                      <td><div align="left">
                                          <label/>
                                          <input type="file" class="font" name="mb_profile120"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">프로필 이미지(30X40)</div></td>
                                      <td><div align="left">
                                          <label/>
                                          <input type="file" class="font" name="mb_profile30"/>
                                      </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">자기소개</div></td>
                                      <td><div align="left">
                                          <label/>
                                          <label>
                                          <textarea id="" rows="10" cols="50" name="mb_introduce">{_data.mb_introduce}</textarea>
                                          </label>
                                          <br/>
                                        * 텍스트 및 HTML 코딩 가능 </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">경력 및 자격증 소개</div></td>
                                      <td><div align="left">
                                          <label/>
                                          <label>
                                          <textarea id="" rows="10" cols="50" name="mb_career">{_data.mb_career}</textarea>
                                          </label>
                                          <br/>
                                        * 텍스트 및 HTML 코딩 가능 </div></td>
                                    </tr>
                                    <tr>
                                      <td><div align="left">동영상</div></td>
                                      <td><div align="left">
                                          <input type="file" class="font" name="mb_movie"/>
                                      </div></td>
                                    </tr>
                                </tbody></table></td>
                              </tr>
                              <tr>
                                <td> </td>
                              </tr>
                              <tr>
                                <td>
<input type="hidden" name="regcode" value="{__regcode}" />
<input type="hidden" name="config" id="config" value="">
<input type="hidden" name="datano" value="{data.no}">
<button type=submit onClick="javascript:setConfig('add');" name="submit_add">{type} 완료 후 추가등록</button>&nbsp;
<button type=submit onClick="javascript:setConfig('list');" name="submit_list">{type} 완료</button>&nbsp;
<button type=reset>취소</button>&nbsp;
                                    </td>
                              </tr>
                          </tbody></table></td>
                        </tr>
                    </tbody></table></td>
                  </tr>
                </tbody></table>
                </form>
